package rsee.com;
import com.video.h264.GlobalUtil;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.RelativeLayout;


public class ConfigActivity extends Activity
{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setTheme(android.R.style.Theme_Black_NoTitleBar_Fullscreen);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
		this.setContentView(R.layout.config);
		
		final String RecordName = this.getIntent().getStringExtra("RecordName");
		final int ChanIndex = this.getIntent().getIntExtra("ChanIndex", 0);
		RelativeLayout playButton = (RelativeLayout)findViewById(R.id.colorrelativeLayout1);
		playButton.setOnClickListener(new RelativeLayout.OnClickListener(){
			public void onClick(View v) {
				Intent intent = new Intent(ConfigActivity.this,ColorConfigP.class);
				intent.putExtra("RecordName", RecordName);
				intent.putExtra("ChanIndex", ChanIndex);
				ConfigActivity.this.startActivity(intent);
			}
			});
		
//		Button addButton = (Button)findViewById(R.id.button2);
//		addButton.setOnClickListener(new Button.OnClickListener(){
//			public void onClick(View v) {
//
//			}
//			});
//		
//		Button setButton = (Button)findViewById(R.id.button3);
//		setButton.setOnClickListener(new Button.OnClickListener(){
//			public void onClick(View v) {
//
//			}
//			});
//
//		

		
	}
	
	@Override
	protected void onResume() {
		super.onResume();
		if(GlobalUtil.OVSIAlarmConfig){
		ActivityList activityList = new ActivityList();
		activityList.put(this, 0);
		}
	}
	
    @Override
	protected void onDestroy() {
        super.onDestroy();
		if(GlobalUtil.OVSIAlarmConfig){
			ActivityList activityList = new ActivityList();
			activityList.remove(this);
			}
    }
	
}